package com.ruoyi.active.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动，用于存储商品的活动信息对象 t_active
 * 
 * @author ruoyi
 * @date 2024-11-11
 */
public class TActive extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动ID */
    @Excel(name = "活动ID")
    private Long activeId;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String activeName;

    /** 活动折扣 */
    @Excel(name = "活动折扣")
    private BigDecimal activeRebate;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 活动状态 */
    @Excel(name = "活动状态")
    private String state;

    public void setActiveId(Long activeId) 
    {
        this.activeId = activeId;
    }

    public Long getActiveId() 
    {
        return activeId;
    }
    public void setActiveName(String activeName) 
    {
        this.activeName = activeName;
    }

    public String getActiveName() 
    {
        return activeName;
    }
    public void setActiveRebate(BigDecimal activeRebate) 
    {
        this.activeRebate = activeRebate;
    }

    public BigDecimal getActiveRebate() 
    {
        return activeRebate;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("activeId", getActiveId())
            .append("activeName", getActiveName())
            .append("activeRebate", getActiveRebate())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("state", getState())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
